<template>
	<view class="">
		<web-view :src="link_url" @message="getMessage"></web-view>
	</view>
</template>

<script>
	import debug from "@/store/modules/debug.js"
	export default {
		onLoad(ops) {
				let user_id=ops.user_id
				let getWay=debug.state.getWay
				let redirect_url="https://test.mo-yu.vip/authorized/index.html"
				// let redirect_url=getWay+"authorized/index.html"
				console.log(redirect_url)
				this.link_url="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx4f0c08c04aa37dc1&redirect_uri="+redirect_url+"&response_type=code&scope=snsapi_base&state="+user_id+"#wechat_redirect"
				console.log(this.link_url)
		},
		data() {
			return {
				user_id:0,
				link_url:"",
				
			};
		},
		methods:{
			getMessage(e){
				// console.log("getMessage:e>>>",e)
				
			}
		}
		
	}
</script>

<style>
</style>
